/**
 * Author:   anTi
 * Date:     2018/11/22 22:55
 * Description:
 * version: 1.0
 */

package com.imooc.avtiviti.delegate;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MDCErrorDelegate implements JavaDelegate {
    private static final Logger LOGGER = LoggerFactory.getLogger(MDCErrorDelegate.class);
    @Override
    public void execute(DelegateExecution delegateExecution) {
        LOGGER.info("run MDCErrorDelegate");
        throw  new RuntimeException("only test");
    }
}
